﻿using DMS.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace DMS.Controllers
{
    public class FrontEndController : Controller
    {
        //
        // GET: /FrontEnd/

        private readonly BUS.Bus _bus = new BUS.Bus();
        public ActionResult Index()
        {
            return View();
        }

        public ActionResult Banner(int? position)
        {
            var model = new BannerObject();
            
            model = _bus.Banner_Select_FE(position.GetValueOrDefault());
            return View(model);
        }

    }
}
